package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 商品附属物(赠品)
 * @author Rongjie
 */
@Data
@TableName("mall_goods_associate")
@KeySequence(value = "mall_goods_associate_SEQ")
@ApiModel(value = "MallGoodsAssociate对象")
public class MallGoodsAssociate implements Serializable{

       private String appKey;

       @TableId(value = "associate_key", type = IdType.UUID)
       private String associateKey;

       @ApiModelProperty(value = "商品id")
       private String goodKey;

       @ApiModelProperty(value = "组合的商品id")
       private String associateGoodKey;

       private Integer createTime;

       private Integer updateTime;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
